package com.tt.dp.command;

import com.tt.dp.command.model.CeilingFan;

public class CeilingFanHighCommand extends AbsCeilingFanCommand{

    public CeilingFanHighCommand(CeilingFan ceilingFan) {
        this.ceilingFan = ceilingFan;
    }

    public void execute() {
        this.prevSpeed = ceilingFan.getSpeed();
        this.ceilingFan.high();
    }
}
